package com.sanq.product.cab.basic.mvc.service;


import com.sanq.product.cab.basic.Pager;
import com.sanq.product.cab.basic.Pagination;

import java.util.List;

/**
 * version: 基础接口服务
 * ---------------------
 *
 * @author sanq.Yan
 * @date 2020/1/26
 */
public interface BaseService<T, K> {

    int save(T save);

    int delete(T delete);

    int update(T update, K id);

    T findById(K id);

    List<T> findList(T query);

    Pager<T> findListByPage(T query, Pagination pagination);

    int findCount(T query);

    void saveByList(List<T> save);

}
